home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- Caption = "Form1"
- ClientHeight = 3432
- ClientLeft = 3036
- ClientTop = 2892
- ClientWidth = 3012
- Height = 3852
- Left = 2988
- LinkTopic = "Form1"
- ScaleHeight = 3432
- ScaleWidth = 3012
- Top = 2520
- Width = 3108
- Begin T4TXLIB txlib1
- Caption = "txlib1"
- Height = 264
- Left = 120
- Top = 3120
- Width = 1332
- End
- Begin PictureBox Picture1
- Height = 1812
- Left = 120
- ScaleHeight = 1788
- ScaleWidth = 2508
- TabIndex = 0
- Top = 120
- Width = 2532
- Begin CheckBox Check1
- Caption = "Box #4"
- Height = 372
- Index = 4
- Left = 120
- TabIndex = 4
- Top = 1200
- Width = 1572
- End
- Begin CheckBox Check1
- Caption = "Box #3"
- Height = 372
- Index = 3
- Left = 120
- TabIndex = 3
- Top = 840
- Width = 1572
- End
- Begin CheckBox Check1
- Caption = "Box #2"
- Height = 372
- Index = 2
- Left = 120
- TabIndex = 2
- Top = 480
- Width = 1572
- End
- Begin CheckBox Check1
- Caption = "Box #1"
- Height = 372
- Index = 1
- Left = 120
- TabIndex = 1
- Top = 120
- Width = 1572
- End
- End
- Begin Label Label2
- Caption = "Label2"
- Height = 372
- Left = 120
- TabIndex = 6
- Top = 2520
- Width = 2532
- End
- Begin Label Label1
- Caption = "Label1"
- ForeColor = &H00000080&
- Height = 372
- Left = 120
- TabIndex = 5
- Top = 2040
- Width = 2532
- End
- Option Explicit
- Sub Check1_Click (Index As Integer)
- Select Case Check1(Index).Value
- Case 0
- 'If un-checked, use Member #1
- txlib1.MemberNumber = 1
- Case Else
- 'If checked, use Member #2
- txlib1.MemberNumber = 2
- End Select
- 'Index equals ParagraphNumber
- txlib1.ParagraphNumber = Index
- 'Set label2
- label2.Caption = txlib1.Text
- End Sub
- Sub Form_Load ()
- 'Open our library
- txlib1.LibraryName = "tutor2.tlb"
- 'Point to the caption for label1
- txlib1.MemberNumber = 3
- 'Set the caption for label1
- label1.Caption = txlib1.Text
- label2.Caption = ""
- End Sub
-